/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.panomedic.kernel.controllers;

import com.panomedic.gui.ToolBar;

/**
 *
 * @author Yare
 */
public class ToolBarController {
    ToolBar toolBar;
    
    public ToolBarController(ToolBar toolBar) {
        this.toolBar = toolBar;
        addBindings();
    }

    protected void addBindings() {
        
        ToolBarListener toolBarListener = new ToolBarListener(toolBar);
        toolBar.getShowResult().addActionListener(toolBarListener);
        toolBar.getProcess().addActionListener(toolBarListener);
        toolBar.getShowLut().addActionListener(toolBarListener);
    }
}
